<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script type="text/javascript" src="<%=request.getContextPath()%>/app/js/jquery-1.4.4.min.js"></script>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title></title>
<style type="text/css">
<!--
.STYLE1 {
	font-family: "宋体";
	font-size: 14px;
}
.STYLE4 {font-family: "宋体"; font-size: 12px; }
-->
	input {border:none;}
	body{font-size: 12px;}
	.table_1{border-right:1px solid black; border-top:1px solid black}
	.table_1 td{border-left:1px solid black; border-bottom:1px solid black;}
	.STYLE2 {color: #FFCC00}
</style>

<script> 
var hkey_root,hkey_path,hkey_key 
hkey_root="HKEY_CURRENT_USER" 
hkey_path="file://software//Microsoft//Internet Explorer\\PageSetup\\" 
//设置网页打印的页眉页脚为空 
function pagesetup_null(){ 
try{ 
var RegWsh = new ActiveXObject("WScript.Shell"); 
hkey_key="header";
RegWsh.RegWrite(hkey_root+hkey_path+hkey_key,""); 
hkey_key="footer";
RegWsh.RegWrite(hkey_root+hkey_path+hkey_key,""); 
}catch(e){} 
} 
//设置网页打印的页眉页脚为默认值 
function pagesetup_default(){ 
try{ 
var RegWsh = new ActiveXObject("WScript.Shell");
hkey_key="header" ;
RegWsh.RegWrite(hkey_root+hkey_path+hkey_key,"&w&b页码，&p/&P"); 
hkey_key="footer" ;
RegWsh.RegWrite(hkey_root+hkey_path+hkey_key,"&u&b&d"); 
}catch(e){} 
} 
function setdivhidden(id){//把指定id以外的层统统隐藏 
document.getElementById("div0").style.display="none"; 
}
function setdivvisible(id){//把指定id以外的层统统显示 
document.getElementsByTagName("div0").display="block"; 
} 
function printpr() //预览函数 
{ 
pagesetup_null();//预览之前去掉页眉，页脚 
setdivhidden("div1");//打印之前先隐藏不想打印输出的元素 
var WebBrowser = '<OBJECT ID="WebBrowser1" WIDTH=0 HEIGHT=0 CLASSID="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></OBJECT>'; 
document.body.insertAdjacentHTML('beforeEnd', WebBrowser);//在body标签内加入html（WebBrowser activeX控件） 
WebBrowser1.ExecWB(7, 1);//打印预览 
WebBrowser1.outerHTML = "";//从代码中清除插入的html代码 
pagesetup_default();//预览结束后页眉页脚恢复默认值 
setdivvisible("div1");//预览结束后显示按钮 
} 
function print() //打印函数 
{ 
pagesetup_null();//打印之前去掉页眉，页脚 
setdivhidden("div1"); //打印之前先隐藏不想打印输出的元素 
var WebBrowser = '<OBJECT ID="WebBrowser1" WIDTH=0 HEIGHT=0 CLASSID="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></OBJECT>'; 
document.body.insertAdjacentHTML('beforeEnd', WebBrowser);//在body标签内加入html（WebBrowser activeX控件） 
WebBrowser1.ExecWB(6, 1);//打印 
WebBrowser1.outerHTML = "";//从代码中清除插入的html代码 
pagesetup_default();//打印结束后页眉页脚恢复默认值 
setdivvisible("div1");//打印结束后显示按钮 
} 

$(document).ready(function() {
	//救助类型
	var peopleTypeVO = "${discussion.peopleType}";
	if(document.getElementById("geren").value == peopleTypeVO){
		$("input[id='geren']").attr("checked",true);
	} else if(document.getElementById("jiating").value == peopleTypeVO){
		$("input[id='jiating']").attr("checked",true);
	}

	//城镇类型
	var accountTypeVO = "${discussion.accountType}";
	if(document.getElementById("nongchun").value == accountTypeVO){
		$("input[id='nongchun']").attr("checked",true);
	} else if(document.getElementById("chengshi").value == accountTypeVO){
		$("input[id='chengshi']").attr("checked",true);
	}
	
	//户籍属地
	var registrationVO = "${discussion.registration}";
	if(document.getElementById("bendi").value == registrationVO){
		$("input[id='bendi']").attr("checked",true);
	} else if(document.getElementById("feibendi").value == registrationVO){
		$("input[id='feibendi']").attr("checked",true);
	}
	
	//救助方式
	var safeWayVO = "${discussion.safeWay}";
	if(document.getElementById("dibao").value == safeWayVO){
		$("input[id='dibao']").attr("checked",true);
	} else if(document.getElementById("feidibao").value == safeWayVO){
		$("input[id='feidibao']").attr("checked",true);
	}
	//申请事由
	var applyCauseVO = "${discussion.applyCause}";
	if(document.getElementById("hz").value == applyCauseVO){
		$("input[id='hz']").attr("checked",true);
	} else if(document.getElementById("jt").value == applyCauseVO){
		$("input[id='jt']").attr("checked",true);
	}else if(document.getElementById("tf").value == applyCauseVO){
		$("input[id='tf']").attr("checked",true);
	}else if(document.getElementById("kj").value == applyCauseVO){
		$("input[id='kj']").attr("checked",true);
	}else if(document.getElementById("zc").value == applyCauseVO){
		$("input[id='zc']").attr("checked",true);
	}else if(document.getElementById("qt").value == applyCauseVO){
		$("input[id='qt']").attr("checked",true);
	}
	

});
</script> 

<!-- START JS为radio赋值 -->
</head>

<body>
<center>
<div id="div0"> 
<input type="button" onclick="printpr();"  value="打印预览"> 
<input type="button" onClick="print();" value="打印"> <p>
</div> 
<div id="div1"> 
	<label style="font-size:24px">临时救助 “一事一议” 事项流程单</label>
<br> 
<br>
	<table width="668px" border="0" align="center" cellpadding="0" cellspacing="0" class="table_1">
  <tr>
      <td height="30" colspan="7" align="right">
    	编号： <input type="text" id="numberNO" name="numberNO" value="${discussion.numberNO }" style="border-top-style:none;border-left-style:none;border-right-style:none;border-bottom-style:none;"/>
    </td>
  </tr>
  <tr>
    <td height="30" colspan="7" bgcolor="#BFBFBF" align="left"><strong>申请人基本情况：</strong></td>
    </tr>
  <tr>
    <td width="104" height="37"><div align="center">户主或本人姓名</div></td>
    <td width="116"><input id="name" type="text" name="name" size="9" value="${discussion.name }"/></td>
    <td width="111"><div align="center">性别</div></td>
    <td width="73"><input id="sex" type="text" name="sex" size="9" value="${discussion.sex }"/></td>
    <td width="69"><div align="center">家庭人口</div></td>
    <td width="66"><input id="home" type="text" name="home" size="9" value="${discussion.home }"/></td>
    <td rowspan="3"><img src="data:image/jpg;base64,${discussion.photo }" style="width: 80px; height: 90px; margin:-53px 0px 0px 15px;" id="picture" name="picture" /></td>
    </tr>
  <tr>
    <td height="33"><div align="center">
      <p>公民身份证号</p>
      </div></td>
    <td colspan="2" align="left"><input id="identify" type="text" name="identify" size="18" value="${discussion.identify }"/></td>
    <td height="33"><div align="center">
      <p>暂住证或居住证号</p>
      </div></td>
    <td colspan="3" align="left"></td>
    </tr>
  
  <tr>
    <td height="50"><div align="center">对象类别</div></td>
    <td colspan="5" align="left">
      <span><input type="radio" id="geren" name="peopleType" checked="checked" value="个人对象" />个人对象&nbsp;&nbsp;<input type="radio" id="bendi" name="registration" checked="checked" value="本地户籍" />本地户籍&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="radio" id="nongchun" name="accountType" checked="checked" value="农村居民" />农村居民&nbsp;&nbsp;<input id="dibao" type="radio" name="safeWay" checked="checked" value="低保对象" />低保对象</span><br>
      <span><input type="radio" id="jiating" name="peopleType" value="家庭对象" />家庭对象&nbsp;&nbsp;<input type="radio" id="feibendi"  name="registration" value="非本地户籍" />非本地户籍 &nbsp;&nbsp;&nbsp;&nbsp;<input type="radio" id="chengshi" name="accountType" value="城市居民" />城市居民&nbsp;&nbsp;<input type="radio" id="feidibao"  name="safeWay" value="非低保对象" />非低保对象</span></td>
    </tr>
 
  <tr>
    <td height="65"><div align="center">申请事由</div></td>
    <td height="65" colspan="6" align="left"><span><input type="radio" id="hz" name="applyCause" value="火灾" />火灾&nbsp;<input type="radio" id="jt" name="applyCause" value="交通事故" />交通事故&nbsp;<input type="radio" id="tf" name="applyCause"  value="突发重大疾病" />突发重大疾病<input type="radio" id="kj" name="applyCause" value="困境低保" />困境低保&nbsp;<input type="radio" id="zc" name="applyCause" value="支出型困难" />支出型困难&nbsp;<input type="radio" id="qt" name="applyCause" value="其他特殊困难" />其他特殊困难</span><br><br>&nbsp;病种描述：<input type="text" name="causeDesc" id="causeDesc" size="60" value="${discussion.causeDesc }" style="border-bottom: 1px solid;"/></td>
  </tr>
  
  <tr>
    <td height="100"><div align="center">启动“一事
    	<br>一议”理由</div></td>
    <td height="100" colspan="6" align="left">${discussion.startCause }
    </td>
  </tr>
   <tr>
    <td height="28"><div align="center">审批人</div></td>
    <td colspan="2" align="left"><input id="audit" type="text" name="audit" size="11" value="${discussion.audit }"/></td>
    <td colspan="3"><div align="center">审批金额</div></td>
    <td align="left"><input id="money" type="text" name="money" size="11" value="${discussion.money }"/></td>
  </tr>
  <tr>
    <td height="30" colspan="7" bgcolor="#BFBFBF" align="left"><strong>社会救助联席会议讨论情况：</strong></td>
    </tr>
  <tr>
    <td colspan="7" align="left"><p>
    	1.联席会议召集人签字：<br><br><br><br>
    	2.联席会议讨论决定：<p><p>
    	&nbsp;&nbsp;&nbsp;①由_______________部门给予_______________救助，救助标准为__________________________________________________<br><br><br>
    	&nbsp;&nbsp;&nbsp;②由_______________部门给予_______________救助，救助标准为__________________________________________________<br><br><br>
    	&nbsp;&nbsp;&nbsp;③由_______________部门给予_______________救助，救助标准为__________________________________________________<br><br><br>
    	&nbsp;&nbsp;&nbsp;④由_______________部门给予_______________救助，救助标准为__________________________________________________<br><br><br>
    	&nbsp;&nbsp;&nbsp;⑤由_______________部门给予_______________救助，救助标准为__________________________________________________<br>
    	3.联席会议相关部门签章：<br><br><br>
    	&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    	负责人：_______________   &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 负责人：_______________&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;负责人：_______________<br>
    	&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;           
    	    （部门公章）　　　　　　                         &nbsp;&nbsp;&nbsp;  （部门公章）     &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    	    （部门公章）<br><br><br>
    	    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    	负责人：_______________   &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 负责人：_______________&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br>
    	&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;           
    	    （部门公章）　　　　　　                         &nbsp;&nbsp;&nbsp;  （部门公章）<p>
    	<span style="float: right">_______________年_______月_______日   </span><br>
    </td>
  </tr>
</table>
</div>
<input type="hidden" id="photo" name="photo" value="${discussion.photo }"/>
</center>
</body>
</html>
